<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<%@ include file="/static/common/taglibs.jsp" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
<%--<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7"/>
    <meta name="author" content="jack"/>
    <meta name="keywords" content="网页描述"/>
    <meta name="description" content="网页关键字"/>
    <title>我的珠宝店</title>
    <link rel="stylesheet" type="text/css" href="${ctx}/static/css/global.css"/>
    <link rel="stylesheet" type="text/css" href="${ctx}/static/css/layout.css"/>
    <script type="text/javascript" src="${ctx}/static/js/jquery.min.js"></script>
    <script type="text/javascript" src="${ctx}/static/js/global.js"></script>
    <title></title>
</head>
<body>--%>
<div id="jewel_results">
    <p id="searchLoading"></p>
<%-- <p>从库存中找到 <b>${jewelNum }</b> 颗钻石</p> --%>
<table class="table_zuan_list" cellpadding="0" cellspacing="0" border="0" id="table">
    <tr>
        <th width="30"><input name="jewelItem" type="checkbox" value="" class="zuan_list_all"/></th>
        <th width="105">货号</th>
        <th width="46">形状</th>
        <th width="40">重量</th>
        <th width="40">颜色</th>
        <th width="49">净度</th>
        <th width="41">切工</th>
        <th width="42">抛光</th>
        <th width="41">对称</th>
        <th width="41">荧光</th>
        <th width="43">证书</th>
        <th width="88">证书号</th>
        <th width="114">尺寸</th>
        <th width="70">国际报价</th>
        <th width="50">折扣</th>
        <th width="80">人民币价格</th>
        <th width="65">订购</th>
    </tr>

    <c:forEach items="${jewels }" var="jewel">
        <tr name="tr_result">
            <td width="30"><input name="jewelItem" type="checkbox" value="${jewel.id}" class="zuan_list_check"/></td>
            <td width="105">${jewel.num}</td>
            <td width="46">${jewel.shape}</td>
            <td width="40">${jewel.weight}</td>
            <td width="40">${jewel.color}</td>
            <td width="49">${jewel.neatness}</td>
            <td width="41">${jewel.cut}</td>
            <td width="42">${jewel.buffing}</td>
            <td width="41">${jewel.symmetry}</td>
            <td width="41">${jewel.fluorescence}</td>
            <td width="43">${jewel.card}</td>
            <td width="88">${jewel.cardId}</td>
            <td width="114">${jewel.size}</td>
            <td width="70">${jewel.internationalPrice}</td>
            <td width="50"><fmt:formatNumber value="${jewel.secondDiscount}" pattern="0.00" type="number"/></td>
            <td width="80"><fmt:formatNumber value="${jewel.secondPrice}" pattern="0" type="number"/></td>
            <td width="65" class="dinggou">
		<a href="${ctx}/jewel/addShopCar?id=${jewel.id}">&nbsp;</a>
                <div class="more">
                    <p>所在地：${jewel.holdType}</p>

                    <p>奶油色：${jewel.hasMilkColor}</p>

                    <p>咖啡色：${jewel.hasCoffeeColor}</p>

                    <p>绿　色：${jewel.hasGreenColor}</p>
                </div>
            </td>
        </tr>
    </c:forEach>

    <tr id="moreTr">
        <td colspan="17"  onclick="search(1)" >点击加载更多</td>
    </tr>

</table>
</div>

<script type="text/javascript">
    $(document).ready(function(){
        $("tr").hover(function(){
            $("tr .dinggou .more").css("display","none");
            $(this).children(".dinggou").children(".more").css("display","block");
        });

        $(".table_zuan_list .zuan_list_all").click(function(){
            if(!$(this).hasClass("cur")){
                $(this).addClass("cur");
                $(this).parent().parent().siblings().children().children(".zuan_list_check").attr("checked","checked");
            }else{
                $(this).removeClass("cur");
                $(this).parent().parent().siblings().children().children(".zuan_list_check").removeAttr("checked");
            }
        })
    });
</script>
<%--
</body>
</html>--%>
